<?php
namespace app\common\enum;

class Examine extends Base
{
	protected static $options = [-1 => '拒绝', 0 => '待审核', 4 => '审核完成'];
    protected static $codeOptions = ['jujue' => -1, 'daishenhe' => 0, 'shenhewancheng' => 4];

    public static function isComplete($examine) {
    	return $examine == static::complete();
    }

    public static function isPrepare($prepare) {
        return $prepare == static::prepare();
    }

    //待审核
    public static function prepare() {
    	return 0;
    }

    //审核完成
    public static function complete() {
        return 4;
    }

    //拒绝审核
    public static function refuse() {
        return -1;
    }
}